/*
* @Author: Choisaaaa
* @Date: 2018/5/14  23:50
* 头条信息的子级路由控制
*/

import React from "react";
import { BrowserRouter as Router, Switch, Redirect, Route, Link } from 'react-router-dom'
//页面
import HeadLineAdd from 'page/headLine/headline-save.jsx';
import HeadLineList from 'page/headLine/headline-list.jsx';


class HeadLineRouter extends React.Component{
    render(){
        return(
            <Switch>
                <Route path="/headLine/add" component={HeadLineAdd} />
                <Route path="/headLine/index" component={HeadLineList}/>
                <Redirect exact from = "/headLine" to="/headLine/index"/>
            </Switch>

        );
    }
}
export default HeadLineRouter;